/* global Vue */
import './appbar.js'
import html from './header.html'
import share from './share.js'

(function (v) {
  v.component('myHeader', {
    props: ['title'],
    template: html,
    methods: {
      goBack: function () {
        this.go(-1)
      },
      share: function () {
        share.show()
      }
    }
  })
})(Vue)
